Submit

The Graph Token API MCP

@The Graph

Official MCP server that turns The Graph’s Token API into a plug-and-play web3 data tool. Exposes ERC-20 & NFT metadata, balances, transfers, top-holder stats, prices, and more, allowing LLMs to run SQL queries on structured and indexed blockchain data.
Overview

What is The Graph Token API MCP?

The Graph Token API MCP is an official server that transforms The Graph’s Token API into a plug-and-play web3 data tool, providing access to ERC-20 and NFT metadata, balances, transfers, top-holder statistics, prices, and more.

How to use The Graph Token API MCP?

To use the API, run the server with Bun using the command bun run index.ts. The server will be accessible at http://localhost:8080/sse for Server-Sent Events (SSE) and http://localhost:8080/stream for HTTP streaming.

Key features of The Graph Token API MCP?

  • Exposes comprehensive blockchain data including ERC-20 and NFT metadata.
  • Allows LLMs to run SQL queries on structured and indexed blockchain data.
  • Supports real-time data streaming via SSE and HTTP.

Use cases of The Graph Token API MCP?

  1. Querying real-time balances and transfers of ERC-20 tokens.
  2. Analyzing NFT metadata and ownership statistics.
  3. Integrating blockchain data into decentralized applications (dApps).

FAQ from The Graph Token API MCP?

  • What is the default port for the server?

The default port is 8080, but it can be changed using the --port option.

  • How do I authenticate with the API?

You need to provide a JWT Access Token as an environment variable named ACCESS_TOKEN.

  • Can I enable verbose logging?

Yes, you can enable verbose logging by using the -v or --verbose option.

Server Config

{
  "mcpServers": {
    "token-api": {
      "command": "npx",
      "args": [
        "@pinax/mcp",
        "--sse-url",
        "https://token-api.mcp.thegraph.com/sse"
      ],
      "env": {
        "ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
      }
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.